Skip to content
This repository was archived by the owner on Apr 10, 2026. It is now read-only.

Improve PrivKey String() method: output hex instead of raw bytes#1571

Open
MozirDmitriy wants to merge 1 commit into
cosmos:mainfrom
MozirDmitriy:relayer
Open

Improve PrivKey String() method: output hex instead of raw bytes#1571
MozirDmitriy wants to merge 1 commit into
cosmos:mainfrom
MozirDmitriy:relayer

Conversation

@MozirDmitriy

Copy link
Copy Markdown

The String() method of the sr25519 PrivKey type now returns the private key as a hex-encoded string instead of raw bytes. This change improves readability and safety when logging or displaying private keys, preventing issues with unprintable or unsafe characters. No functional logic is changed—only the string representation is affected.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant